package com.drools.project.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * drools规则文件存放路径
 */
@Component
@ConfigurationProperties(prefix = "drools.store")
public class DroolsFilePathConfig {
    /**
     * drools规则文件存放路径,默认从D盘根目录读取(linux服务器，则自行决定规则文件存放路径)
     */
    @Value("${drools.store.path:D:/drools}")
    private String path;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
